import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

public class Main {
    public static void main(String[] args) {
        Collection collection = new Collection();
        Student student = new Student("zhangsan",18);
        Teacher teacher = new Teacher("lisi",30);
        Cook cook = new Cook("wangwu",20);

        collection.add(student);
        collection.add(teacher);
        collection.add(cook);
        collection.print();
    }
}
